package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.query.QueryObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    List<Permission> selectByRoleId(Long id);

    List<Permission> list(QueryObject qo);

    List<String> selectPermissionByEmployeeId(Long id);

    List<String> selectPermissionExpression();
}